﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AB7 RID: 2743
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MainMissionCustomValue : IMessage<MainMissionCustomValue>, IMessage, IEquatable<MainMissionCustomValue>, IDeepCloneable<MainMissionCustomValue>, IBufferMessage
	{
		// Token: 0x1700229A RID: 8858
		// (get) Token: 0x06007AAA RID: 31402 RVA: 0x00147B0B File Offset: 0x00145D0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MainMissionCustomValue> Parser
		{
			get
			{
				return MainMissionCustomValue._parser;
			}
		}

		// Token: 0x1700229B RID: 8859
		// (get) Token: 0x06007AAB RID: 31403 RVA: 0x00147B12 File Offset: 0x00145D12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MainMissionCustomValueReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700229C RID: 8860
		// (get) Token: 0x06007AAC RID: 31404 RVA: 0x00147B24 File Offset: 0x00145D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MainMissionCustomValue.Descriptor;
			}
		}

		// Token: 0x06007AAD RID: 31405 RVA: 0x00147B2B File Offset: 0x00145D2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MainMissionCustomValue()
		{
		}

		// Token: 0x06007AAE RID: 31406 RVA: 0x00147B34 File Offset: 0x00145D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MainMissionCustomValue(MainMissionCustomValue other) : this()
		{
			this.customValueList_ = ((other.customValueList_ != null) ? other.customValueList_.Clone() : null);
			this.mainMissionId_ = other.mainMissionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007AAF RID: 31407 RVA: 0x00147B80 File Offset: 0x00145D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MainMissionCustomValue Clone()
		{
			return new MainMissionCustomValue(this);
		}

		// Token: 0x1700229D RID: 8861
		// (get) Token: 0x06007AB0 RID: 31408 RVA: 0x00147B88 File Offset: 0x00145D88
		// (set) Token: 0x06007AB1 RID: 31409 RVA: 0x00147B90 File Offset: 0x00145D90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValueList CustomValueList
		{
			get
			{
				return this.customValueList_;
			}
			set
			{
				this.customValueList_ = value;
			}
		}

		// Token: 0x1700229E RID: 8862
		// (get) Token: 0x06007AB2 RID: 31410 RVA: 0x00147B99 File Offset: 0x00145D99
		// (set) Token: 0x06007AB3 RID: 31411 RVA: 0x00147BA1 File Offset: 0x00145DA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainMissionId
		{
			get
			{
				return this.mainMissionId_;
			}
			set
			{
				this.mainMissionId_ = value;
			}
		}

		// Token: 0x06007AB4 RID: 31412 RVA: 0x00147BAA File Offset: 0x00145DAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MainMissionCustomValue);
		}

		// Token: 0x06007AB5 RID: 31413 RVA: 0x00147BB8 File Offset: 0x00145DB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MainMissionCustomValue other)
		{
			return other != null && (other == this || (object.Equals(this.CustomValueList, other.CustomValueList) && this.MainMissionId == other.MainMissionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007AB6 RID: 31414 RVA: 0x00147C08 File Offset: 0x00145E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.customValueList_ != null)
			{
				num ^= this.CustomValueList.GetHashCode();
			}
			if (this.MainMissionId != 0U)
			{
				num ^= this.MainMissionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007AB7 RID: 31415 RVA: 0x00147C5D File Offset: 0x00145E5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007AB8 RID: 31416 RVA: 0x00147C65 File Offset: 0x00145E65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007AB9 RID: 31417 RVA: 0x00147C70 File Offset: 0x00145E70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.customValueList_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.CustomValueList);
			}
			if (this.MainMissionId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007ABA RID: 31418 RVA: 0x00147CCC File Offset: 0x00145ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.customValueList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CustomValueList);
			}
			if (this.MainMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007ABB RID: 31419 RVA: 0x00147D24 File Offset: 0x00145F24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MainMissionCustomValue other)
		{
			if (other == null)
			{
				return;
			}
			if (other.customValueList_ != null)
			{
				if (this.customValueList_ == null)
				{
					this.CustomValueList = new MissionCustomValueList();
				}
				this.CustomValueList.MergeFrom(other.CustomValueList);
			}
			if (other.MainMissionId != 0U)
			{
				this.MainMissionId = other.MainMissionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007ABC RID: 31420 RVA: 0x00147D8C File Offset: 0x00145F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007ABD RID: 31421 RVA: 0x00147D98 File Offset: 0x00145F98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MainMissionId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.customValueList_ == null)
					{
						this.CustomValueList = new MissionCustomValueList();
					}
					input.ReadMessage(this.CustomValueList);
				}
			}
		}

		// Token: 0x04002EE7 RID: 12007
		private static readonly MessageParser<MainMissionCustomValue> _parser = new MessageParser<MainMissionCustomValue>(() => new MainMissionCustomValue());

		// Token: 0x04002EE8 RID: 12008
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002EE9 RID: 12009
		public const int CustomValueListFieldNumber = 1;

		// Token: 0x04002EEA RID: 12010
		private MissionCustomValueList customValueList_;

		// Token: 0x04002EEB RID: 12011
		public const int MainMissionIdFieldNumber = 6;

		// Token: 0x04002EEC RID: 12012
		private uint mainMissionId_;
	}
}
